package com.itheima.consumer.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectExchangeListener {

    @RabbitListener(queues = "direct.queue1")
    public void direct(String message){
        System.out.println("direct接受到"+message);
    }
}
